-
Notifications
You must be signed in to change notification settings - Fork 224
Hibernation: Add check for disk space requirement #4122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
adityagesh
commented
Nov 21, 2025
- Hibernation requires free disk space proportional to RAM of the machine. LISA currently does not support os disk size as a requirement.
- Azure does not support Hibernation for VM with memory larger than 256 GB
1709020 to
ba9870a
Compare
|
LGTM |
6619dfd to
da8f248
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds disk space validation for VM hibernation to prevent setup failures. The changes implement pre-flight checks for disk space requirements and improve error handling for space-related hibernation failures.
- Adds a new function
check_hibernation_disk_requirements()that validates available disk space based on VM RAM size - Adds error pattern detection for defragmentation space errors in the hibernation setup tool
- Integrates the disk space check into the Power test suite's
before_casehook to fail fast before attempting hibernation
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| lisa/tools/hibernation_setup.py | Adds regex pattern and error handling for defragmentation space errors during hibernation setup |
| lisa/microsoft/testsuites/power/common.py | Implements new disk space validation function that checks RAM size and available disk space against hibernation requirements |
| lisa/microsoft/testsuites/power/power.py | Integrates disk space check into test suite setup by calling it in the before_case hook |
99d6976 to
28f349e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.
1. Hibernation requires free disk space proportional to RAM of the machine. LISA currently does not support os disk size as a requirement. 2. Azure does not support Hibernation for VM with memory larger than 256 GB
28f349e to
7abbc51
Compare